package com.example.spring_security_demo.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Service {
    private final Test test;

    @Autowired
    public Service(Test test){
        this.test=test;
    }

    public void change(){
        test.a = 1;
    }
}
